/**
 *ZHU framework. Copyright 2007-, all rights reserved.
 *
 * $Id$
 * $Revision$
 * $Date$
 * $Author$
 */
package daily.entity.security;

import java.util.*;

/**
 * @author xiaopengzhu
 * 
 */
public enum Function {
	DAY("日報閲覧", EnumSet.of(SecurityRole.ADMIN, SecurityRole.ALPERSONAL)), //
	PERIOD("期間閲覧", EnumSet.of(SecurityRole.ALPERSONAL)), //
	;

	private Function(final String label, final EnumSet<SecurityRole> securityRoles) {
		this.label = label;
		this.securityRoles = securityRoles;
	}

	public String getLabel() {
		return label;
	}

	/**
	 * @return the securityRoles
	 */
	public EnumSet<SecurityRole> getSecurityRoles() {
		return securityRoles;
	}

	private final String label;
	private final EnumSet<SecurityRole> securityRoles;
}
